import request from '@/utils/request'

// 查询商铺类型列表
export function listStoresType(query) {
  return request({
    url: '/system/storesType/list',
    method: 'get',
    params: query
  })
}

// 查询商铺类型详细
export function getStoresType(id) {
  return request({
    url: '/system/storesType/' + id,
    method: 'get'
  })
}

// 新增商铺类型
export function addStoresType(data) {
  return request({
    url: '/system/storesType',
    method: 'post',
    data: data
  })
}

// 修改商铺类型
export function updateStoresType(data) {
  return request({
    url: '/system/storesType',
    method: 'put',
    data: data
  })
}

// 删除商铺类型
export function delStoresType(id) {
  return request({
    url: '/system/storesType/' + id,
    method: 'delete'
  })
}
